package com.gujiangbo.application.common.trace.context;

import com.gujiangbo.application.common.trace.InstanceLoader;

public class TraceContextHolder {
	private static TCHolderFactory tcHolderFactory = (TCHolderFactory) InstanceLoader.loader(TCHolderFactory.class);

	public static TraceContext getDataContext() {
		if (tcHolderFactory == null) {
			return null;
		}
		return tcHolderFactory.getDataContext();
	}
}
